---
title: Chart
description: Displays an 8-bit chart.
---

import { ChartExample } from "@/components/ui/8bit/blocks/chart";
import CopyCommandButton from "@/components/copy-command-button";
import InstallationCommands from "@/components/installation-commands";
import ComponentPreview from "@/components/component-preview";

<div className="flex flex-col md:flex-row items-center justify-end gap-2 mb-2">
  <CopyCommandButton
    copyCommand="pnpm dlx shadcn@latest add @8bitcn/chart"
    command="pnpm dlx shadcn@latest add @8bitcn/chart"
  />
</div>

<ComponentPreview title="8-bit Chart component" name="chart">
  <ChartExample />
</ComponentPreview>

## Installation

---

<InstallationCommands packageName="chart" />

## Usage

---

```tsx
import { ChartExample } from "@/components/ui/8bit/blocks/chart"
```

```tsx
<ChartExample />
```

